from common.database import db_connect
db_session,Base,engine = db_connect()
from sqlalchemy import Table
class Article(Base):
    __table__ = Table("article",Base.metadata,autoload_with=engine)
    #查询出所有文章但是不要草稿
    #一页显示多少内容
    def find_article(self,page,article_type="recommend"):
        count = int(page) * 10